<?php

include("utils.php");
//=====================================================language=============================================
if($_SESSION['langname']=="")
{
	$language_url="languages/"."english".'/language.php';
}
else
{
	$language_url="languages/".$_SESSION['langname'].'/language.php';
}

include_once("$language_url");
//======================================================End============================================
//include("lang_buildCustomNetwork.php");
if(!isset($_SESSION[siteuserId]))
	echo '<script>location.href="index.php"</script>';
main_content("mainBuySpace();");

function mainBuySpace()
{
if($_SESSION['langId']!="")
{
	$langId=$_SESSION['langId'];
}
else
{
	$langId="1";
}


if(isset($_POST['create_campaign']))
{
echo '<script>location.href="create_campaign.php?tab=buy_ads&subMenu=3"</script>';
}

if(isset($_POST['edit_selected']))
{
	$radio = $_POST['radio'];
	echo '<script>location.href="update_campaign.php?tab=buy_ads&subMenu=3&radio='.$radio.'"</script>';
}


?>
<script type="text/javascript">

function under_display_function(id)
{
var id = id;
//alert(id);
	if(document.getElementById('under_table_'+id).style.display == 'none')
	{
	document.getElementById('under_table_'+id).style.display = '';
	}
	
	else
	{
	document.getElementById('under_table_'+id).style.display = 'none';
	}

}

function under_ad_display_function(id)
{

	if(document.getElementById('under_ad_table_'+id).style.display == 'none')
	{
	document.getElementById('under_ad_table_'+id).style.display = '';
	}
	
	else
	{
	document.getElementById('under_ad_table_'+id).style.display = 'none';
	}

}


function get_campaign_detail(id)
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	
	document.getElementById("camp_detail_select"+id).checked='true';
	document.getElementById("right_div_detail").style.display='';
        document.getElementById("right_div_detail").innerHTML=xmlHttp.responseText;


//alert(xmlHttp.responseText);	  
      }
    }

  xmlHttp.open("GET","get_camp_detail.php?camp_id="+id,true);
  xmlHttp.send(null);
  return false; 
}


function get_adgroup_detail(id)
{
//alert(id);
document.getElementById("sub_adgroup"+id).checked='true';
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	document.getElementById("sub_adgroup"+id).checked='true';
	document.getElementById("right_div_detail").style.display='';
        document.getElementById("right_div_detail").innerHTML=xmlHttp.responseText;
//alert(xmlHttp.responseText);	  
      }
    }

  xmlHttp.open("GET","get_adgroup_detail.php?adgroup_id="+id,true);
  xmlHttp.send(null);
  return false; 
}



function get_adgroup_ad_detail(id)
{
//alert(id);
document.getElementById("sub_adgroup_ad"+id).checked='true';
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	document.getElementById("sub_adgroup_ad"+id).checked='true';
	document.getElementById("right_div_detail").style.display='';
        document.getElementById("right_div_detail").innerHTML=xmlHttp.responseText;
//alert(xmlHttp.responseText);	  
      }
    }

  xmlHttp.open("GET","get_adgroup_ad_detail.php?sub_adgroup_ad="+id,true);
  xmlHttp.send(null);
  return false; 
}
</script>

<script language="javascript" src="js/ajax.js"></script>
<script language="javascript" src="js/ajaxresponse.js"></script>
<script language="JavaScript">
function change_status(campId,status,counter)
{
	//alert(counter);
	//alert(campId);
	//alert(status);
	sendRequest("ajax/ajax_change_status.php","campaign_id="+campId+"&runn="+status+"&count_col="+counter,"POST");
}

function change_status_adgroup(adgroupId,adgroup_status,adcamp_counter,adgroup_counter)
{
	//alert(adgroupId);
	//alert(adgroup_status);
	//alert(adgroup_counter);
	sendRequest("ajax/ajax_change_status_adgroup.php","adgroup_id="+adgroupId+"&adgroup_runn="+adgroup_status+"&adcamp_count_col="+adcamp_counter+"&adgroup_count_col="+adgroup_counter,"POST");
}

function change_status_adgroup_ad(adgroup_adId,adgroup_ad_status,adcamp_counter,adcamp_group_counter,adgroup_ad_counter)
{
	sendRequest("ajax/ajax_change_status_adgroup_ad.php","adgroup_ad_id="+adgroup_adId+"&adgroup_ad_runn="+adgroup_ad_status+"&adcamp_count_col="+adcamp_counter+"&adgroup_count_col="+adcamp_group_counter+"&adgroup_ad_count_col="+adgroup_ad_counter,"POST");
}

function select_status(status_value)
{
	//alert(status_value);
	document.campaign_manager.mode.value=status_value;
	//alert(document.campaign_manager.mode.value);
	document.campaign_manager.submit();
}
</script>


<input type="hidden" name="hidAdSpaceId" id="hidAdSpaceId" value="<?php echo $adspaceID;?>">
<input type="hidden" name="hidDelAdSpaceId" id="hidDelAdSpaceId" value="<?php echo $fetFavId[0];?>">


<table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-Height">
  <tr>
    <td valign="top"><table border="0" align="center" cellpadding="0" cellspacing="0" class="admob-Height">
      <tr>
        <td width="244" valign="top"><?php include("left_pannel.php"); ?></td>
        <td width="14" valign="top">&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-Height">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="10"><img src="images/admob-leftPanelTopLeft.jpg" alt="" width="10" height="34" /></td>
                  <td class="admob-LeftPanelTopLeft"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-RightPanelWhiteContent">

                      <tr>
                        <td><?php echo CAMPAIGN_MANAGER; ?></td>
                        </tr>
                  </table></td>
                  <td width="10"><img src="images/admob-leftPanelTopRight.jpg" alt="" width="10" height="34" /></td>
                </tr>
            </table></td>
          </tr>
<form name="campaign_manager" method="POST" action="">
          <tr>
            <td valign="top" class="admob-RightPanelMiddleBg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="600" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td class="admob-SquareBoxTilteBg1"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td class="admob-leftPanelWhiteContent">Current Account Balance:</td>
                                    <td align="right"><input type="submit" name="create_campaign" value="<?php echo CREATE_CAMPAIGN; ?>" /> </td>
                                    <td align="right"><input type="submit" name="edit_selected" value="<?php echo EDIT_SELECTED_ITEM; ?>" /> </td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td valign="top" class="admob-SquareBoxBorder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="162" class="admob-FormContent"><?php echo CAMPAIGN_STATUS; ?> : </td>
					 <input type="hidden" name="mode" id="mode" value="">
                                        <td><select name="campaign_status" class="admob-FormDropDownBox" onchange="select_status(this.value)">
						<option value="">Select One</option>
						<option value="all">All</option>
						<option value="running">Running</option>
						<option value="paused">Paused</option>
                                        </select></td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td>
                                  </tr>
                                  <tr>
                                    <td><table border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td class="admob-TabTitleArea"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="70" class="admob-TitleBgwithContent"><?php echo SELECT; ?></td>
                                            <td width="1"></td>
                                            <td width="200" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_NAME; ?></td>
                                            <td width="1"></td>
                                            <td width="70" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_CONTENTS; ?></td>
                                            <td width="1"></td>
                                            <td width="150" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_STATUS; ?></td>
                                            <td width="1"></td>
                                            <td width="70" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_ACTION; ?></td>
                                          </tr>
                                        </table></td>
                                      </tr>
                                      <tr>
                                        <td class="admob-listboxborder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<!-- Start getting data from database -->
<?php
if($_REQUEST['mode']=='running')
{
	$get_query = "select * from adcampaign where siteuserId = ".$_SESSION[siteuserId]." and runn = 'Y'";
}
else if($_REQUEST['mode']=='paused')
{
	$get_query = "select * from adcampaign where siteuserId = ".$_SESSION[siteuserId]." and runn = 'N'";
}
else if($_REQUEST['mode']=='all')
{
	$get_query = "select * from adcampaign where siteuserId = ".$_SESSION[siteuserId]." ";
}
else
{
$get_query = "select * from adcampaign where siteuserId = ".$_SESSION[siteuserId]." ";
}
$res_query = mysql_query($get_query);
$_SESSION['total_campaign'] = mysql_num_rows($res_query);
$i=1;
while($row_query = mysql_fetch_array($res_query))
{ 
// Get adgroup query
$query_adgroup = " select * from adgroup where campaign_id = '".$row_query['campaign_id']."' and siteuserId = '".$_SESSION[siteuserId]."' ";
$res_adgroup = mysql_query($query_adgroup);
$total_adgroup = mysql_num_rows($res_adgroup);

?>

                                              <tr>
                                                <td class="admob-ListingBottomBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                  <tr>
                                                    <td width="70" height="25" align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                                      <tr>
                                                        <td style="cursor:pointer" id="plus_id_<?php $row_query['campaign_id'];?>" onclick="return under_display_function(<?php echo $row_query['campaign_id']; ?>);"><img src="images/admob-plusIcon.gif" alt="" width="12" height="12" align="absmiddle" /></td>

                                                        <td><input name="radio" type="radio" value="<?php echo $row_query['campaign_id']; ?>" id="camp_detail_select<?php echo $row_query['campaign_id']; ?>" onclick="return get_campaign_detail(<?php echo $row_query['campaign_id']; ?>);" /></td>
                                                      </tr>
                                                    </table></td>
                                                    <td width="1" align="center"></td>
                                                    <td width="200" align="center"><?php echo $row_query['camp_name']; ?></td>
                                                    <td width="1" align="center"></td>
                                                    <td width="70" align="center"><?php echo $total_adgroup; ?></td>
                                                    <td width="1" align="center"></td>
                                                    <td width="150" align="center" id="approved_<?php echo $i; ?>">
							<?php if($row_query['approved']=='N'){ ?>
							Paused
							<?php } else{
								if($row_query['runn']=='N')
								{
								?>
								Paused
								<?php
								}
								else
								{
								?>
								Running
								<?php
								}
							?>
							<?php
							}
							?>
						    </td>
                                                    <td width="1" align="center"></td>
                                                    <td width="70" align="center" id="action_<?php echo $i; ?>">
							<?php if($row_query['approved']=='N'){ ?>
							<img src="images/admob-PlayButton.jpg" align="" width="13" height="13" alt="">
							<?php }
							else{
								if($row_query['runn']=='N')
								{
								?>
								<img src="images/admob-PlayButton.jpg" align="" width="13" height="13" alt="" onclick="change_status('<?php echo $row_query['campaign_id']; ?>','<?php echo $row_query['runn']; ?>','<?php echo $i; ?>');">
								<?php
								}
								else
								{
								?>
								<img src="images/admob-PausedButton.jpg" align="" width="13" height="13" alt="" onclick="change_status('<?php echo $row_query['campaign_id']; ?>','<?php echo $row_query['runn']; ?>','<?php echo $i; ?>');">
								<?php
								}
							?>
							<?php
							}
							?>
						</td>
                                                  </tr>
                                                </table></td>
                                              </tr>


                                              <tr>
                                                <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                              </tr>
                                              <tr id="under_table_<?php echo $row_query['campaign_id']; ?>" style="display:none;">
                                                <td><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                      <tr>
                                                        <td class="admob-TabTitleArea"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                              <td width="60" class="admob-TitleBgwithContent"><?php echo SELECT; ?></td>
                                                              <td width="1"></td>
                                                              <td width="100" class="admob-TitleBgwithContent"><?php echo AD_GROUP_NAME; ?></td>
                                                              <td width="1"></td>
                                                              <td width="100" class="admob-TitleBgwithContent"><?php echo AD; ?></td>
                                                              <td width="1"></td>
                                                              <td width="100" class="admob-TitleBgwithContent"><?php echo NETWORK; ?></td>
                                                              <td width="1"></td>
                                                              <td width="70" class="admob-TitleBgwithContent">Status</td>
                                                              <td width="1"></td>
                                                              <td width="70" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_ACTION; ?></td>
                                                            </tr>
                                                        </table></td>
                                                      </tr>
<?php 
$j=1;
while($row_adgroup = mysql_fetch_array($res_adgroup)){ 
	
$query_adgroup_ad = "select * from adgroup_ad where adgroup_id = '".$row_adgroup['adgroup_id']."' ";
$res_adgroup_ad   = mysql_query($query_adgroup_ad);
$total_adgroup_ad = mysql_num_rows($res_adgroup_ad);

?>
                                                      <tr>
                                                        <td class="admob-listboxborder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                          <tr>
                                                            <td class="admob-ListingBottomBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">

                                                              <tr>
                                                                <td width="60" height="25" align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                                                  <tr>
                                                                    <td width="20" align="center" style="cursor:pointer;" id="plus_ad_id_<?php echo $row_adgroup['adgroup_id']; ?>" onclick="return under_ad_display_function(<?php echo $row_adgroup['adgroup_id']; ?>);"><img src="images/admob-plusIcon.gif" alt="" width="12" height="12" align="absmiddle" /></td>
                                                                    <td><input name="radio" type="radio" id="sub_adgroup<?php echo $row_adgroup['adgroup_id']; ?>" value="<?php echo $row_query['campaign_id']; ?>" onclick="return get_adgroup_detail(<?php echo $row_adgroup['adgroup_id']; ?>);" /></td>
                                                                  </tr>
                                                                </table></td>
                                                                <td width="1" align="center"></td>
                                                                <td width="100" align="center"><?php echo $row_adgroup['adgroup_name']; ?></td>
                                                                <td width="1" align="center"></td>
                                                                <td width="100" align="center"><?php echo $total_adgroup_ad; ?></td>
                                                                <td width="1" align="center"></td>
                                                                <td width="100" align="center"><?php echo $row_adgroup['adgroup_network']; ?></td>
                                                                <td width="1" align="center"></td>
                                                                <td width="70" align="center" id="adgroup_approved_<?php echo $i; ?><?php echo $j; ?>">
									<?php
									if($row_adgroup['runn']=='N')
									{
									?>
									Paused
									<?php
									}
									else
									{
									?>
									Running
									<?php
									}
									?>
								</td>
                                                                <td width="1" align="center"></td>
                                                                <td width="70" align="center" id="adgroup_action_<?php echo $i; ?><?php echo $j; ?>">
								<?php
								if($row_adgroup['runn']=='N')
								{
								?>
								<img src="images/admob-PlayButton.jpg" align="" alt="" width="13" height="13" onclick="change_status_adgroup('<?php echo $row_adgroup['adgroup_id']; ?>','<?php echo $row_adgroup['runn']; ?>','<?php echo $i; ?>','<?php echo $j; ?>');">
								<?php
								}
								else
								{
								?>
								<img src="images/admob-PausedButton.jpg" align="" alt="" width="13" height="13" onclick="change_status_adgroup('<?php echo $row_adgroup['adgroup_id']; ?>','<?php echo $row_adgroup['runn']; ?>','<?php echo $i; ?>','<?php echo $j; ?>');">
								<?php
								}
								?>
								</td>
                                                              </tr>
                                                            </table></td>
                                                          </tr>
                                                          <tr>
                                                            <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                                          </tr>
                                                          <tr id="under_ad_table_<?php echo $row_adgroup['adgroup_id']; ?>" style="display:none;">
                                                            <td><table border="0" align="center" cellpadding="0" cellspacing="0">
                                                              <tr>
                                                                <td class="admob-TabTitleArea"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                      <td width="60" class="admob-TitleBgwithContent"><?php echo SELECT; ?></td>
                                                                      <td width="1"></td>
                                                                      <td width="100" class="admob-TitleBgwithContent"><?php echo AD_NAME; ?></td>
                                                                      <td width="1"></td>
                                                                      <td width="100" class="admob-TitleBgwithContent">Ad Status</td>
                                                                      <td width="1"></td>
                                                                      <td width="100" class="admob-TitleBgwithContent"><?php echo CAMPAIGN_ACTION; ?></td>
                                                                    </tr>
                                                                </table></td>
                                                              </tr>
<?php
$k=1;

while($row_adgroup_ad = mysql_fetch_array($res_adgroup_ad)){
?>
                                                              <tr>
                                                                <td class="admob-listboxborder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                      <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                                          <tr>
                                                                            <td width="60" height="25" align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                                                                <tr>
                                                                                  <td width="20" align="center"><img src="images/admob-plusIcon.gif" alt="" width="12" height="12" align="absmiddle" /></td>
                                                                                  <td><input onclick="return get_adgroup_ad_detail(<?php echo $row_adgroup_ad['adgroup_ad_id']; ?>);" name="radio" type="radio" id="sub_adgroup_ad<?php echo $row_adgroup_ad['adgroup_ad_id']; ?>" value="<?php echo $row_query['campaign_id']; ?>" /></td>
                                                                                </tr>
                                                                            </table></td>
                                                                            <td width="1" align="center"></td>
                                                                            <td width="100" align="center"><?php echo $row_adgroup_ad['heading']; ?></td>
                                                                            <td width="1" align="center"></td>
                                                                            <td width="100" align="center" id="adgroup_ad_approved_<?php echo $i; ?><?php echo $j; ?><?php echo $k; ?>">
										<?php
										if($row_adgroup_ad['runn']=='N')
										{
										?>
										Paused
										<?php
										}
										else
										{
										?>
										Running
										<?php
										}
										?>
										</td>
                                                                            <td width="1" align="center"></td>
                                                                            <td width="100" align="center" id="adgroup_ad_action_<?php echo $i; ?><?php echo $j; ?><?php echo $k; ?>">
									<?php
									if($row_adgroup_ad['runn']=='N')
									{
									?>
									<img src="images/admob-PlayButton.jpg" align="" alt="" width="13" height="13" onclick="change_status_adgroup_ad('<?php echo $row_adgroup_ad['adgroup_ad_id']; ?>','<?php echo $row_adgroup_ad['runn']; ?>','<?php echo $i; ?>','<?php echo $j; ?>','<?php echo $k; ?>');">
									<?php
									}
									else
									{
									?>
									<img src="images/admob-PausedButton.jpg" align="" alt="" width="13" height="13" onclick="change_status_adgroup_ad('<?php echo $row_adgroup_ad['adgroup_ad_id']; ?>','<?php echo $row_adgroup_ad['runn']; ?>','<?php echo $i; ?>','<?php echo $j; ?>','<?php echo $k; ?>');">
									<?php
									}
									?>
										</td>
                                                                          </tr>
                                                                      </table></td>
                                                                    </tr>
                                                                </table></td>
                                                              </tr>

<?php   $k++; }   ?>

                                                            </table></td>
                                                          </tr>
                                                          <tr>
                                                            <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                                          </tr>
                                                        </table></td>
                                                      </tr>
<?php $j++; } ?> 
                                                    </table></td>
                                                  </tr>
                                                </table></td>
                                              </tr>
<?php $i++; } ?>
                                            </table></td>
                                          </tr>
                                        </table></td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                </table></td>
                              </tr>
                            </table></td>
                <td width="11" valign="top">&nbsp;</td>
                <td width="302" valign="top" id="right_div_detail"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="admob-SquareBoxTilteBg"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td class="admob-leftPanelWhiteContent"><?php echo STATISTICS; ?></td>
                        <td align="right"><a href="#" class="admob-ImgToplink">Detailed Status</a></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td class="admob-SquareBoxBorder admob-FormContent"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                      <tr>
                        <td width="115" height="25">Name : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Level : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Campaign Status : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Network : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Bid : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Ad Type : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Banner Size : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Daily Budget Spent : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Daily Budget : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Total Budget Spent : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Total Budget : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Total Impressions : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Total Clicks : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">Daily Budget Spent : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">CTR : </td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="25">&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
</form>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="11"><img src="images/admob-leftPanelBottomLeft.jpg" alt="" width="11" height="11" /></td>
                  <td class="admob-LeftPanelBottomBg"><img src="images/spacer.gif" alt="" width="10" height="11" /></td>
                  <td width="11"><img src="images/admob-leftPanelBottomRight.jpg" alt="" width="11" height="11" /></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
}
?>
